package com.aspose.cells.a.d;

public class zew extends zef {
   private com.aspose.cells.b.a.d.zh a;
   private zfc b;
   private boolean d;
   private zdm g;

   public zew(zdh var1) throws Exception {
      this(var1, false);
   }

   public zew(zdh var1, boolean var2) throws Exception {
      super(var1);
      this.d = var2;
      this.a = new com.aspose.cells.b.a.d.zh();
      this.b = new zfc(this.a);
   }

   public com.aspose.cells.b.a.d.zm e() {
      return this.a;
   }

   public void a(String var1) throws Exception {
      this.b.a(var1);
   }

   public void b(String var1) throws Exception {
      this.b.c(var1);
   }

   public void c(String var1) throws Exception {
      this.b.b(var1);
   }

   public void a(byte[] var1, int var2, int var3) throws Exception {
      this.b.a(var1, var2, var3);
   }

   public void a(byte var1) throws Exception {
      this.b.a(var1);
   }

   public void a(float var1, float var2, float var3, float var4, float var5, float var6, String var7) throws Exception {
      assert var7 != null && !com.aspose.cells.b.a.zv.b(var7, "");

      StringBuilder var8 = new StringBuilder(128);
      zfc.a(var1, var8);
      var8.append(' ');
      zfc.a(var2, var8);
      var8.append(' ');
      zfc.a(var3, var8);
      var8.append(' ');
      zfc.a(var4, var8);
      var8.append(' ');
      zfc.a(var5, var8);
      var8.append(' ');
      zfc.a(var6, var8);
      var8.append(' ');
      var8.append(var7);
      this.c(com.aspose.cells.b.a.zr.a(var8));
   }

   public void a(float[] var1, String var2) throws Exception {
      assert var1 != null && var1.length == 6;

      this.a(var1[0], var1[1], var1[2], var1[3], var1[4], var1[5], var2);
   }

   public void a(com.aspose.cells.b.a.b.a.zi var1, String var2) throws Exception {
      assert var1 != null;

      this.a(var1.e(), var2);
   }

   public void d(String var1) throws Exception {
      this.b.d(var1);
   }

   public void a(byte[] var1) throws Exception {
      this.b.b(var1);
   }

   public void b(zeg var1) throws Exception {
   }

   public void d(zeg var1) throws Exception {
      com.aspose.cells.b.a.d.zh var2 = this.a;
      if (this.f() != null) {
         var2 = this.f().a(this.a);
      }

      var1.a(this);
      var1.g();
      this.b(var1);
      var1.a("/Length", (float)var2.h());
      if (this.d) {
         var1.a("/Length1", (float)this.a.h());
      }

      if (this.f() != null) {
         this.f().a(var1);
      }

      var1.h();
      var1.a("\r\nstream\r\n");
      var2.a(var1.d());
      this.a.g_();
      var2.g_();
      this.a = null;
      var2 = null;
      var1.a("\r\nendstream\r\n");
      var1.b();
   }

   public void e(zeg var1) throws Exception {
      com.aspose.cells.b.a.d.zh var2 = this.a;
      if (this.f() != null) {
         var2 = this.f().a(this.a);
      }

      var1.a(this);
      var1.g();
      this.b(var1);
      var1.a("/Length", (float)var2.h());
      if (this.d) {
         var1.a("/Length1", (float)var2.h());
      }

      if (this.f() != null) {
         this.f().a(var1);
      }

      var1.h();
      var1.a("\r\nstream\r\n");
      zet var3 = this.e.j();
      var3.a((zef)this);
      var3.a(var2);
      var2.a(var1.d());
      this.a.g_();
      var2.g_();
      this.a = null;
      var2 = null;
      var1.a("\r\nendstream\r\n");
      var1.b();
   }

   public void a(zeg var1) throws Exception {
      if (this.e.b().q() != null) {
         this.e(var1);
      } else {
         this.d(var1);
      }

   }

   protected boolean b() {
      return false;
   }

   protected zdm f() throws Exception {
      if (this.g == null) {
         this.g = zdm.a(this.c(), this.e.b().c());
      }

      return this.g;
   }

   private int c() {
      return !this.b() ? this.e.b().g() : this.e.b().h();
   }
}
